'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const { ctx } = this;
    // ctx.body = 'hi, egg';
    await ctx.render("index",{
      fruits : [
        "香蕉",
        "苹果",
        "鸭梨",
      ]
    })
  }
  async createData(){
    this.ctx.body = "hello egg egg egg egg"
  }
}

module.exports = HomeController;
